{if count($aGroups) > 0}
<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{language text="my_groups_997"}</td>
				</tr>
			</table>
			<br />

			{foreach from=$aGroups item=aItem name=grplinks}
			<a class="link_description" href="{url link='public.groups.view' id=$aItem.id foxseotitle=$aItem.title}">{$aItem.title|clean|escape}</a>{if not $smarty.foreach.grplinks.last}, {/if}

			{if $smarty.foreach.grplinks.last}
				<div style="padding:8px;text-align:right;"><br />
				<a class="link_action" href="{url link='public.groups.mygroups' name=$sUser}">[ {language text="view_all_my_groups"} ]</a>
				</div>
			{/if}

			{foreachelse}
			<div style="font-weight:bold;color:green;padding:5px;font-size:11px;text-align:center;">
			{language text="there_are_no_groups_yet"}
			</div>
			{/foreach}

		</td>
	</tr>
</table>
<br />
{/if}